package com.roger.myHome.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.roger.myHome.domain.TbFinancial;
import com.roger.myHome.entity.qto.FinancialQry;
import com.roger.myHome.entity.vo.FinancialIncomeVo;
import com.roger.myHome.entity.vo.FinancialVo;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

@Repository
public interface FinancialMapper extends BaseMapper<TbFinancial> {
    List<FinancialVo> page(FinancialQry financialQry);

    Long total(FinancialQry financialQry);

    FinancialIncomeVo searchTotalIncome();

    BigDecimal findSumProfit();
}
